{include 'admin/layout/header'}

<link rel="stylesheet" href="__ADMIN_STATIC__/css/setting.css?random={extendSetting('random')}">
<link rel="stylesheet" href="__ADMIN_STATIC__/css/addContent.css?random={extendSetting('random')}">
<div class="content">
    <form class="ajaxForm" method="post" >
        <input type="hidden" name="_method" value="put" >
        <ul class="content-info1">
            <input type="hidden" name="pid" value="{$request['moduleId']}" />
            <li style="border-bottom: 1px solid rgb(221, 221, 221);background-color: #F5F5F5;">
                <p class="sclip article-status" style="">
                    <span style="font-weight: bold;font-size: 14px;">细节优化</span>
                </p>
            </li>
            <li class="scli">
                <span>级别别名</span>
                <p class="sclip article-status">
                    <input type="text" class="long" name="setting[levelAlias]" value="{if isset($setting['levelAlias'])}{$setting['levelAlias']}{/if}">
                    <select style="width:150px;">
                        <option value="0">级别</option>
                        {if $levelList}
                        {foreach  $levelList  $key $val}
                        <option value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                    <i class="tips1 iconfont icon-yiwen" title="用 | 分隔不同别名 依次对应 1|2|3|4|5|6|7|8|9 级"></i>
                </p>
            </li>
            <li class="scli">
                <span>富文本编辑器</span>
                <p class="sclip article-status">
                    {php  $text_editor=array("kindEditor"=>"kindEditor","ueditor"=>"百度编辑器",);}
                    <select style="width:200px;" name="setting[text_editor]" >
                        <option value="">请选择</option>
                        {if $text_editor }
                        {foreach $text_editor $key $val}
                        <option value="{$key}"  {if (isset($setting['text_editor']) && $setting['text_editor']==$key) } selected  {/if} >{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </p>
            </li>
            <!--<li class="scli">-->
                <!--<span>默认缩略图[宽X高]</span>-->
                <!--<p class="sclip article-status">-->
                    <!--<input type="text" size="3" class="short" style="width: 50px;text-align: center;" name="setting[thumbWidth]" placeholder="0不改变" value="{if isset($setting['thumbWidth'])}{$setting['thumbWidth']}{else}0{/if}">-->
                    <!--X&nbsp;-->
                    <!--<input type="text" size="3" class="short"  style="width: 50px;text-align: center;" name="setting[thumbHeight]"  placeholder="0不改变" value="{if isset($setting['thumbHeight'])}{$setting['thumbHeight']}{else}0{/if}"> px-->
                <!--</p>-->
            <!--</li>-->
            <!--<li class="scli">-->
                <!--<span>列表信息排序方式</span>-->
                <!--<p class="sclip article-status">-->
                    <!--<input type="text" name="setting[order]" id="order" value="{if isset($setting['order'])}{$setting['order']}{/if}">-->
                    <!--<select  onchange="onUpdateOrder(this)" style="width:150px;">-->
                        <!--<option value="">选择</option>-->
                        <!--<option value="id desc">id</option>-->
                        <!--<option value="updateTime desc">更新时间</option>-->
                        <!--<option value="addTime desc">添加时间</option>-->
                    <!--</select>-->
                <!--</p>-->
            <!--</li>-->
            <li class="scli">
                <span>自动截取内容至简介</span>
                <p class="sclip">
                    <input style="width:100px;" type="text" name="setting[extractContentToDescLen]" value="{$setting['extractContentToDescLen']??''}" />
                </p>
            </li>
            <li class="scli">
                <span>设置内容第 x 张图片为标题图</span>
                <p class="sclip">
                    <input style="width:100px;" type="text" name="setting[setNumberImgToThumbnail]" value="{$setting['setNumberImgToThumbnail']??''}" />
                </p>
            </li>
            <li class="scli">
                <span>内链默认替换次数</span>
                <div class="sclip">
                    <input style="width:100px;" type="text" name="setting[url_replace_by_word_limit]" value="{$setting['url_replace_by_word_limit']??''}" />
                </div>
            </li>
            <li class="scli">
                <span>内链</span>
                <div class="sclip">
                    <textarea class="long"  type="text" name="setting[url_replace_by_word]" style="min-height:200px;" >{$setting['url_replace_by_word']??''}</textarea>
                    <div style="display: inline-block;">
                        示例：关键字@url地址@次数 <hr />(  测试@http://www.test.com@2  )
                     </div>
                </div>
            </li>
            <li style="border-bottom: 1px solid rgb(221, 221, 221);background-color: #F5F5F5;">
                <p class="sclip article-status" style="">
                    <span style="font-weight: bold;font-size: 14px;">模版设置</span>
                </p>
            </li>
            <li class="scli">
                <span>首页默认模板</span>
                <p class="sclip article-status">
                    <select name="setting[template_index]" >
                        <option value="">默认模板</option>
                        {if isset($templateConfig["templateFiles"]['index']) && $templateConfig["templateFiles"]['index']}
                        {foreach $templateConfig["templateFiles"]['index'] $key $val}
                        <option {if (isset($setting['template_index']) && $setting['template_index']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}

                        {if isset($templateConfig["templateFiles"][$request['moduleId']]['index']) && $templateConfig["templateFiles"][$request['moduleId']]['index']}
                        {foreach $templateConfig["templateFiles"][$request['moduleId']]['index'] $key $val}
                        <option {if (isset($setting['template_index']) && $setting['template_index']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </p>
            </li>
            <li class="scli">
                <span>列表默认模板</span>
                <p class="sclip article-status">
                    <select name="setting[template_list]" >
                        <option value="">默认模板</option>
                        {if isset($templateConfig["templateFiles"]['list']) && $templateConfig["templateFiles"]['list']}
                        {foreach $templateConfig["templateFiles"]['list'] $key $val}
                        <option {if (isset($setting['template_list']) && $setting['template_list']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}

                        {if isset($templateConfig["templateFiles"][$request['moduleId']]['list']) && $templateConfig["templateFiles"][$request['moduleId']]['list']}
                        {foreach $templateConfig["templateFiles"][$request['moduleId']]['list'] $key $val}
                        <option {if (isset($setting['template_list']) && $setting['template_list']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </p>
            </li>
            <li class="scli">
                <span>内容默认模板</span>
                <p class="sclip article-status">
                    <select name="setting[template_content]" >
                        <option value="">默认模板</option>
                        {if isset($templateConfig["templateFiles"]['detail']) && $templateConfig["templateFiles"]['detail']}
                        {foreach $templateConfig["templateFiles"]['detail'] $key $val}
                        <option {if (isset($setting['template_content']) && $setting['template_content']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}

                        {if isset($templateConfig["templateFiles"][$request['moduleId']]['detail']) && $templateConfig["templateFiles"][$request['moduleId']]['detail']}
                        {foreach $templateConfig["templateFiles"][$request['moduleId']]['detail'] $key $val}
                        <option {if (isset($setting['template_content']) && $setting['template_content']==$key) } selected  {/if} value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </p>
            </li>
            <li class="scli">
                <span>文章内容-404页面</span>
                <p class="sclip article-status">
                    <input class="long" type="text" name="setting[article_detail_404]" value="{$setting['article_detail_404']??''}" >
                </p>
            </li>
            <li style="border-bottom: 1px solid rgb(221, 221, 221);background-color: #F5F5F5;">
                <p class="sclip article-status" style="">
                    <span style="font-weight: bold;font-size: 14px;">url伪静态</span>
                </p>
            </li>
            <li class="scli">
                <span>首页是否生成html</span>
                <p class="sclip article-status">
                    <!--<input  name="setting[moduleIndexHtml]"  value="1" type="radio" {if (isset($setting['moduleIndexHtml']) && $setting['moduleIndexHtml']=='1') } checked  {/if} >是-->
                    <input  name="setting[moduleIndexHtml]"  value="0" type="radio" {if (isset($setting['moduleIndexHtml']) && $setting['moduleIndexHtml']=='0') } checked  {/if} >否
                </p>
            </li>
            <span class="switchContainer">
                <li class="scli">
                    <span>列表页生成html</span>
                    <p class="sclip article-status">
                        <!--<input class="switch_btn" data-index="1" name="setting[moduleListHtml]"  value="1" type="radio" {if (isset($setting['moduleListHtml']) && $setting['moduleListHtml']=='1') } checked  {/if} >是-->
                        <input class="switch_btn" data-index="2" name="setting[moduleListHtml]"  value="0" type="radio" {if (isset($setting['moduleListHtml']) && $setting['moduleListHtml']=='0') } checked  {/if} >否
                    </p>
                </li>
                <span class="switchBox switch_box_1" {if (isset($setting['moduleListHtml']) && $setting['moduleListHtml']!='1') }style="display:none;"{else}style="display:block;"{/if} >
                    <li class="scli">
                        <span>HTML列表页文件名前缀</span>
                        <p class="sclip article-status">
                            <input type="text" name="setting[htm_list_prefix]" value="{$setting['htm_list_prefix']??''}" >
                        </p>
                    </li>
                    <li class="scli">
                        <span>HTML列表页地址规则</span>
                        <p class="sclip article-status">
                            <select name="setting[htmlListUrlRule]" class="midium">
                                {foreach $settingData["listUrlRule"]["htm"]["list"] $key $val}
                                    <option {if (isset($setting['htmlListUrlRule']) && $setting['htmlListUrlRule']==$key) } selected  {/if} value="{$key}">{$val['example']}</option>
                                {/foreach}
                            </select>
                        </p>
                    </li>
                </span>
                <span class="switchBox switch_box_2" {if (isset($setting['moduleListHtml']) && $setting['moduleListHtml']!='0') }style="display:none;"{else}style="display:block;"{/if} >
                    <li class="scli">
                        <span>PHP列表页地址规则</span>
                        <p class="sclip article-status">
                            <select name="setting[listUrlRule]" class="midium">
                                {foreach $settingData["listUrlRule"]["php"]["list"] $key $val}
                                    <option {if (isset($setting['listUrlRule']) && $setting['listUrlRule']==$key) } selected  {/if} value="{$key}">{$val['example']}</option>
                                {/foreach}
                            </select>
                        </p>
                    </li>
                </span>
            </span>
            <span class="switchContainer">
                <li class="scli">
                    <span>内容页生成html</span>
                    <p class="sclip article-status">
                        <!--<input class="switch_btn" data-index="3" name="setting[moduleConHtml]"  value="1" type="radio" {if (isset($setting['moduleConHtml']) && $setting['moduleConHtml']=='1') } checked  {/if} >是-->
                        <input class="switch_btn" data-index="4" name="setting[moduleConHtml]"  value="0" type="radio" {if (isset($setting['moduleConHtml']) && $setting['moduleConHtml']=='0') } checked  {/if} >否
                    </p>
                </li>
                <span class="switchBox switch_box_3" {if (isset($setting['moduleConHtml']) && $setting['moduleConHtml']!='1') }style="display:none;"{else}style="display:block;"{/if} >
                    <li class="scli">
                        <span>HTML内容页文件名前缀</span>
                        <p class="sclip article-status">
                            <input type="text" name="setting[htm_item_prefix]" value="{$setting['htm_item_prefix']??''}" >
                        </p>
                    </li>
                    <li class="scli">
                        <span>HTML内容页地址规则</span>
                        <p class="sclip article-status">
                            <select name="setting[htmlConUrlRule]" class="midium">
                                {foreach $settingData["listUrlRule"]["htm"]["item"] $key $val}
                                    <option {if (isset($setting['htmlConUrlRule']) && $setting['htmlConUrlRule']==$key) } selected  {/if} value="{$key}">{$val['example']}</option>
                                {/foreach}
                            </select>
                        </p>
                    </li>
                </span>
                <span class="switchBox switch_box_4" {if (isset($setting['moduleConHtml']) && $setting['moduleConHtml']!='0') }style="display:none;"{else}style="display:block;"{/if} >
                    <li class="scli">
                        <span>PHP内容页地址规则</span>
                        <p class="sclip article-status">
                            <select name="setting[conUrlRule]" class="midium">
                                {foreach $settingData["listUrlRule"]["php"]["item"] $key $val}
                                <option {if (isset($setting['conUrlRule']) && $setting['conUrlRule']==$key) } selected  {/if} value="{$key}">{$val['example']}</option>
                                {/foreach}
                            </select>
                        </p>
                    </li>
                </span>
            </span>
            <li style="border-bottom: 1px solid rgb(221, 221, 221);background-color: #F5F5F5;">
                <p class="sclip article-status" style="">
                    <span style="font-weight: bold;font-size: 14px;">SEO优化</span>
                </p>
            </li>
            <li class="scli">
                <span>模块首页<br />Title(网页标题)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleIndexTitle]" value="{$setting['moduleIndexTitle']??''}"><br />
                    <a href="javascript:_into('moduleIndexTitle', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleIndexTitle', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleIndexTitle', '[网站SEO标题]');" title="[网站SEO标题]">[网站SEO标题]</a>
                    <a href="javascript:_into('moduleIndexTitle', '[页码]');" title="[页码]">[页码]</a>
                    <a href="javascript:_into('moduleIndexTitle', '[分隔符]');" title="[分隔符]">[分隔符]</a>
                </p>
            </li>
            <li class="scli">
                <span>模块首页<br />Keywords(网页关键词)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleIndexKeywords]" value="{$setting['moduleIndexKeywords']??''}" /><br />
                    <a href="javascript:_into('moduleIndexKeywords', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleIndexKeywords', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleIndexKeywords', '[网站SEO关键字]');" title="[网站SEO关键字]">[网站SEO关键字]</a>
                </p>
            </li>
            <li class="scli">
                <span>模块首页<br />Description(网页描述)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleIndexDescription]" value="{$setting['moduleIndexDescription']??''}"><br />
                    <a href="javascript:_into('moduleIndexDescription', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleIndexDescription', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleIndexDescription', '[网站SEO描述]');" title="[网站SEO描述]">[网站SEO描述]</a>
                </p>
            </li>
            <li class="scli">
                <span>列表页<br />Title(网页标题)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleListTitle]" value="{$setting['moduleListTitle']??''}"><br />
                    <a href="javascript:_into('moduleListTitle', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleListTitle', '[分类SEO标题]');" title="[分类SEO标题]">[分类SEO标题]</a>
                    <a href="javascript:_into('moduleListTitle', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleListTitle', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleListTitle', '[网站SEO标题]');" title="[网站SEO标题]">[网站SEO标题]</a>
                    <a href="javascript:_into('moduleListTitle', '[页码]');" title="[页码]">[页码]</a>
                    <a href="javascript:_into('moduleListTitle', '[分隔符]');" title="[分隔符]">[分隔符]</a>
                </p>
            </li>
            <li class="scli">
                <span>列表页<br />Keywords(网页关键词)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleListKeywords]" value="{$setting['moduleListKeywords']??''}" /><br />
                    <a href="javascript:_into('moduleListKeywords', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleListKeywords', '[分类SEO关键字]');" title="[分类SEO关键字]">[分类SEO关键字]</a>
                    <a href="javascript:_into('moduleListKeywords', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleListKeywords', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleListKeywords', '[网站SEO关键字]');" title="[网站SEO关键字]">[网站SEO关键字]</a>
                </p>
            </li>
            <li class="scli">
                <span>列表页<br />Description(网页描述)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleListDescription]" value="{$setting['moduleListDescription']??''}"><br />
                    <a href="javascript:_into('moduleListDescription', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleListDescription', '[分类SEO描述]');" title="[分类SEO描述]">[分类SEO描述]</a>
                    <a href="javascript:_into('moduleListDescription', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleListDescription', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleListDescription', '[网站SEO描述]');" title="[网站SEO描述]">[网站SEO描述]</a>
                </p>
            </li>
            <li class="scli">
                <span>模块内容页<br />Title(网页标题)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleDetailTitle]" value="{$setting['moduleDetailTitle']??''}"><br />
                    <a href="javascript:_into('moduleDetailTitle', '[内容标题]');" title="[内容标题]">[内容标题]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[分类SEO标题]');" title="[分类SEO标题]">[分类SEO标题]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[网站SEO标题]');" title="[网站SEO标题]">[网站SEO标题]</a>
                    <a href="javascript:_into('moduleDetailTitle', '[分隔符]');" title="[分隔符]">[分隔符]</a>
                </p>
            </li>
            <li class="scli">
                <span>模块内容页<br />Keywords(网页关键词)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleDetailKeywords]" value="{$setting['moduleDetailKeywords']??''}" /><br />
                    <a href="javascript:_into('moduleDetailKeywords', '[内容标题]');" title="[内容标题]">[内容标题]</a>
                    <a href="javascript:_into('moduleDetailKeywords', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleDetailKeywords', '[分类SEO关键字]');" title="[分类SEO关键字]">[分类SEO关键字]</a>
                    <a href="javascript:_into('moduleDetailKeywords', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleDetailKeywords', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleDetailKeywords', '[网站SEO关键字]');" title="[网站SEO关键字]">[网站SEO关键字]</a>
                </p>
            </li>
            <li class="scli">
                <span>模块内容页<br />Description(网页描述)</span>
                <p class="sclip">
                    <input style="width:700px;" type="text" name="setting[moduleDetailDescription]" value="{$setting['moduleDetailDescription']??''}"><br />
                    <a href="javascript:_into('moduleDetailDescription', '[内容标题]');" title="[内容标题]">[内容标题]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[文章简介]');" title="[文章简介]">[文章简介]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[分类名称]');" title="[分类名称]">[分类名称]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[分类SEO描述]');" title="[分类SEO描述]">[分类SEO描述]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[模块名称]');" title="[模块名称]">[模块名称]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[网站名称]');" title="[网站名称]">[网站名称]</a>
                    <a href="javascript:_into('moduleDetailDescription', '[网站SEO描述]');" title="[网站SEO描述]">[网站SEO描述]</a>
                </p>
            </li>
        </ul>
        <div class="ltcms-button">
            <button class="btns submit ajaxBtn" type="button" data-form=".ajaxForm" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/article/recordBatch" >确认提交</button>
        </div>
    </form>
</div>
<script>
    //更新信息
    function onUpdateOrder(selectElement) {
        if (selectElement.value!==""){
            document.getElementById("order").value = selectElement.value;
        }
    }
</script>
{include 'admin/layout/file_upload_script_auto'}
{include 'admin/layout/footer'}